package com.groupseven.backend.test;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ：风雨之都
 * @date ：Created 2021/10/23 10:45
 */
@Component
@ConfigurationProperties(prefix = "data.encode")
@Data
public class DataEncodeProperties {

    /**
     * 加密的盐值
     */
    private String salt = "groupseven";
    /**
     * base64加密次数
     */
    private int size = 2;
    /**
     * RSA 公钥
     */
    private String publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCE7HOOubhaZFs0QzKc5MVoVeeOxic1QcsYZ9yQlmFwbnwsjQeNb6N+g3mlT35oAoxwqjT/ckJ0ITaVejFSIzd9C3i970eaKW3o0L0LbJh/aiHtoMy/lCyLBL+ZyyXQUNfBvh56pHvncweO+F7wf6nUoKCXX1eNdJIAJ9D5bva8EQIDAQAB";
    /**
     * RSA 私钥
     */
    private String privateKey = "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAITsc465uFpkWzRDMpzkxWhV547GJzVByxhn3JCWYXBufCyNB41vo36DeaVPfmgCjHCqNP9yQnQhNpV6MVIjN30LeL3vR5opbejQvQtsmH9qIe2gzL+ULIsEv5nLJdBQ18G+Hnqke+dzB474XvB/qdSgoJdfV410kgAn0Plu9rwRAgMBAAECgYBU4Qx1ckC3b+gRemuCZk9sbZacxAnbZzUCU6gzp+N2wQaICFJvTX+QVPJDznxAfIgjlXycNeEbeO37C3kdIyHVynTol3HKTbe3D6rfcrfmWXeiNoapL2/Z/l802b1Vh/L5rUPMm0+pFdwyPCKux/efonGvGFJnhA+GB14UkG/MAQJBAMU2jRWtfIgxkOWD0xDCc9Xi34tQ5Hjtyn5KgESZt6WBAU/VA7UWVG64+BNh+6e7qWG/3T4XHfAcHDBUxia7o8ECQQCsi+8J5r3hO+w13cqTRkJhkK3fArln78alr0XxcEkoqmUWO44G6nf82r8xWZo2dRrxWitOA7kcaYudwcczIuxRAkBz3yth8z7aHpVN5PhcPoQkxVom1u6GhuCU910J8W9PlM6ag0PcYDRXoeJQMR/VW5OX1U0+sAJtE3cUhpquI02BAkA57rHPbT2LhgcE/vapBAn9oAoAunVtxD+6GWMucTjfAnb2RACnqcmnh/pxo1f3uNHW/yNTCkT4mSdbTFiJfsxBAkA+Pryg70euRnN3zvcfEbkb31aClIQfeFa/0Jy8vr33Q0VraQEzLreat3DqYBtzRySRDJ/yTez1ylwDDoFowQqF";
    /**
     RSA最大加密
     */
    private int keySize = 1024;
    /**
     * RSA 被加密字符串最大长度
     */
    private int maxEncryptBlock = keySize / 8;
    /**
     * RSA 最大解密长度
     */
    private int maxDecryptBlock = keySize / 8;
}
